Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 253 Bytes

7.3.3 - Http/Response->status.md

File metadata and controls

10 lines (7 loc) · 253 Bytes

Http\Response->status

发送Http状态码。

swoole_http_response->status(int $http_status_code);
  • $http_status_code必须为合法的HttpCode,如200, 502, 301, 404等,否则会报错
  • 必须在$response->end之前执行status